<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
<h1>用户登录</h1>
<div><a th:href="@{index}">首页</a></div>
<form th:action="@{/doLogin}" method="post">
    <div th:text="${loginMsg}" style="color: red"></div>
    <div>用户名: <input type="text" name="name" value="zhangsan"></div>
    <div>密 码 : <input type="password" name="password" value="111111"></div>
    <div>验证码 : <input type="text" name="captcha" placeholder="输入验证码"><img th:src="@{getCaptcha}" alt="验证码" height="40px"></div>
    <div><input type="submit" name="submit" value="登录"> <a th:href="@{register}">注册</a></div>
</form>
</body>
</html>